import { FinanceGetResultModel } from './model/financeModel'
import { defHttp } from '/@/utils/http/axios'
/**
 * 服务商服务模块接口
 */
const prefix = '/finance.data/'
// api接口列表
enum Api {
  getServiceSettlement = 'getServiceSettlement',
  getServiceSettlementDetail = 'getServiceSettlementDetail',
}

/**
 * 到家服务商- 结算列表
 * @param {*} params
 */
export const getServiceSettlement = (params) =>
  defHttp.get<FinanceGetResultModel>({ url: prefix + Api.getServiceSettlement, params })

/**
 * 到家服务商 - 结算详情
 * @param {*} params
 */
export const getServiceSettlementDetail = (params) =>
  defHttp.get<FinanceGetResultModel>({ url: prefix + Api.getServiceSettlementDetail, params })
